-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buildmode & GM panel compatability #267
base: master
Are you sure you want to change the base?
Buildmode & GM panel compatability #267
Conversation
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Conflicts have been resolved. A maintainer will review the pull request shortly. |
Breaks infestation and vent submenus via MMB for GM panel with usage. Did these get remapped? |
Not remapped, I forgot about them while implementing this. The GM menu needs to "own" the click while middle-clicking for those to work, but this changes it to only "owning" the click when one of the spawn/objective/etc on-click toggles is enabled. No current plans for this. It never became a big issue that needed solving, and I'm not sure this was the best way to solve it regardless (assuming I fixed the middle-click). |
About the pull request
Allows multiple click intercept sources (ex/buildmode, GM panel, rappel panel) to coexist peacefully. It remembers all sources and the most recent source takes priority.
Instead of a single
click_intercept
, there's now a list ofclick_intercepts
. Any activated intercept source will add itself to the list, and will remove itself when deactivated. The last source in the list (the most recent) gets the clicks.Significantly adjusted how the GM panel handled its multiple intercepts to work with the new system. Should be the exact same for the user.
Explain why it's good for the game
Buildmode and the GM panel are used every round, frequently at the same time. This PR allows them to be used side-by-side in a much smoother way than one nuking the other's click intercept if that control is closed.
Testing Photographs and Procedure
Boots without issue. Tested having buildmode, GM panel, rappel panel all open at the same time. Closing one allows the others to still function.
Changelog
🆑
qol: buildmode & GM panel don't stomp on each other's clicks
/:cl: